package be.obia.moo.dovebird;

import android.app.ActionBar;
import android.app.ActionBar.Tab;
import android.app.Activity;
import android.app.FragmentTransaction;
import android.widget.Toast;


public class DBTabListener implements ActionBar.TabListener {
    private final Activity mActivity;
    private final String mTag;

    public DBTabListener(Activity activity, String tag) {
        mActivity = activity;
        mTag = tag;        
    }

    public void onTabSelected(Tab tab, FragmentTransaction ft) {
        Toast.makeText(mActivity, "Selected " + mTag + "!", Toast.LENGTH_SHORT).show();
    }

    public void onTabUnselected(Tab tab, FragmentTransaction ft) {
        Toast.makeText(mActivity, "Unselected " + mTag + "!", Toast.LENGTH_SHORT).show();
    }

    public void onTabReselected(Tab tab, FragmentTransaction ft) {
        Toast.makeText(mActivity, "Reselected " + mTag + "!", Toast.LENGTH_SHORT).show();
    }
}